<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>创美个人网盘</title>
    <link rel="stylesheet" href="../static/bootstrap/css/bootstrap.min.css" th:href="@{/bootstrap/css/bootstrap.min.css}">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
</head>

<!--自定义样式-->
<style>

</style>

<body>



<!--导航-->
<nav th:fragment="menu(n)" class="navbar navbar-inverse lucency-sm rounded-no lucency-sm animated fadeIn">
    <div class="container">

        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">切换</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#" th:href="@{/}" ><b>创美网盘</b></a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="overflow: visible !important;">
            <ul class="nav navbar-nav">

                <li class="active"><a th:href="@{/}" href="#"><span class="glyphicon glyphicon-home"></span> 首页</a></li>
                <li><a href="#" th:href="|@{/goDisk}?pagestart=1|"><sapn class="glyphicon glyphicon-tag"></sapn> 网盘</a></li>
                <li><a href="#" th:href="@{/dynamic/index}"><sapn class="glyphicon glyphicon-align-left"></sapn> 动态</a></li>
                <li><a href="#" th:href="@{/aboutus}"><span class="glyphicon glyphicon-list"></span> 关于我们</a></li>
                <li><a href="#" th:href="@{/commentmessage}"><span class="glyphicon glyphicon-comment"></span> 留言板</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <!--<li><img id="avatar" src="http://www.blogry.cn/images/avatar.jpg" class="img-circle" width="40px" height="40px"></li>-->
                <li th:if="${user} == null"><a href="#" th:href="@{/loginIndex}"><sapn class="glyphicon glyphicon-user"></sapn> 登录</a></li>
                <!--<li><a href="#" th:href="@{/goDisk}"><sapn class="glyphicon glyphicon-bookmark"> 我的网盘</span></a></li>-->
                <li th:if="${user} != null" class="dropdown">
                    <a href="javascript:(0)" data-toggle="dropdown">
                        <img class="img-size-least img-circle" src="../static/images/avatar/avatar.jpg" th:src="${user.getAvatar()}">
                        <span th:text="${user.getNickname()}">hello</span>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-left" role="menu">
                        <li role="presentation" class="dropdown-header">登录操作</li>
                        <li><a href="#" th:href="@{/user/logout}"  role="menuitem"><span class="glyphicon glyphicon-remove"></span> 注销</a></li>
                        <!--分割线-->
                        <li class="divider"></li>
                        <li role="presentation" class="dropdown-header">用户操作</li>
                        <li><a href="http://www.blogry.cn" th:href="@{/user/editor}" role="menuitem"> <span class="glyphicon glyphicon-pencil"></span> 编辑信息</a></li>
                    </ul>
                </li>
                <!--<li class=""><a href="#"><span class="glyphicon glyphicon-pencil"></span> 修改</a></li>-->
            </ul>
        </div>
    </div>
</nav>

<br>
<br>
<br>
<br>
<br>
<br>
<!--巨幕-->
<div class="container lucency-xs animated bounceInDown">
    <div class="jumbotron">
        <img th:if="${user}  ==  null" src="/images/avatar/avatar3.jpg" th:src="@{/images/avatar/avatar3.jpg}" class="img-size-xs img-circle">
        <img th:if="${user}  !=  null" src="http://www.blogry.cn/images/avatar.jpg" th:src="${user.getAvatar()}" class="img-size-xs img-circle">

        <h2 th:if="${user}  !=  null">欢迎您,<span th:text="${user.getNickname()}"></span></h2>
        <h2 th:if="${user}  ==  null">欢迎您,<span>请登录!</span></h2>

        <p th:if="${user} == null">欢迎来到创美个人网盘，我们坚定用心创造快乐！</p>
        <p th:if="${user} != null" th:text="${user.getIntroduction()}"></p>

        <a th:if="${user}  ==  null" href="#" th:href="@{/loginIndex}" class="btn btn-info">登录到我的网盘</a>
        <a th:if="${user}  !=  null" href="#" th:href="|@{/goDisk}?pagestart=1|" class="btn btn-success">进入到我的网盘</a>
    </div>
</div>

<!--展示-->
<div class="container">
    <div class="row">

    </div>
</div>



<!--/*/<th:block th:replace="fragments :: script">/*/-->
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<!--/*/</th:block>/*/-->

</body>
</html>